package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/8/13 11:06
 */
public class SaveWorksData implements Parcelable {

    private int researchId;//活动ID
    private int worksId;//作品ID：有值修改，没值新增
    private String userId;//上传者
    private String workName;//作品名称
    private int cId;//作品子分类
    private int isShred;//是否共享
    private String danwei;//单位
    private String phone;//联系电话

    public int getResearchId() {
        return researchId;
    }

    public void setResearchId(int researchId) {
        this.researchId = researchId;
    }

    public int getWorksId() {
        return worksId;
    }

    public void setWorksId(int worksId) {
        this.worksId = worksId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }

    public int getIsShred() {
        return isShred;
    }

    public void setIsShred(int isShred) {
        this.isShred = isShred;
    }

    public String getDanwei() {
        return danwei;
    }

    public void setDanwei(String danwei) {
        this.danwei = danwei;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public SaveWorksData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.researchId);
        dest.writeInt(this.worksId);
        dest.writeString(this.userId);
        dest.writeString(this.workName);
        dest.writeInt(this.cId);
        dest.writeInt(this.isShred);
        dest.writeString(this.danwei);
        dest.writeString(this.phone);
    }

    protected SaveWorksData(Parcel in) {
        this.researchId = in.readInt();
        this.worksId = in.readInt();
        this.userId = in.readString();
        this.workName = in.readString();
        this.cId = in.readInt();
        this.isShred = in.readInt();
        this.danwei = in.readString();
        this.phone = in.readString();
    }

    public static final Creator<SaveWorksData> CREATOR = new Creator<SaveWorksData>() {
        @Override
        public SaveWorksData createFromParcel(Parcel source) {
            return new SaveWorksData(source);
        }

        @Override
        public SaveWorksData[] newArray(int size) {
            return new SaveWorksData[size];
        }
    };
}
